package com.example.cookie02.dao;

import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface PersonDao {
    //查询
    List<Map<String, Object>> queryAll();
    //查询单个
    List<Map<String, Object>> queryOne(String id);
    //查询根据username
    List<Map<String, Object>> queryName(String username);
    //删除根据id
    Boolean delect(int id);
    //修改根据id
    Boolean update(Map<String, String[]> parameterMap);
    //插入
    Boolean add(Map<String,String[]> objectMap);
    //获取总条数
    int AllCount();
    //输出一页
    List<Map<String, Object>> queryOnePage(int pageIndex,int pageSize);


}
